package com.spring.boot.standard.admin.dao;

import org.apache.poi.ss.usermodel.Picture;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import com.spring.boot.standard.admin.entity.Versions;

import java.util.List;

/**
 * @author qinhao
 * @since Tue Sep 07 06:24:29 UTC 2021
 */
@RepositoryRestResource(exported=false)
public interface VersionsRepository extends JpaRepository<Versions, String>,JpaSpecificationExecutor<Versions> {
		//do somethings

    @Query(value = "SELECT p FROM Versions p order by version desc")
    Versions findLatestVersion();

}